package com.ptu.entity;

import java.util.Date;

/**
 * 考勤实体类
 */
public class Duty {

    private int dtID;               // 出勤编号
    private Date dtDate;            // 出勤日期
    private String signinTime;      // 签到时间
    private String signoutTime;     // 签退时间
    private String emprId;          // 可以同时提供id和对象属性

    //增加属性
    private  String realName;       // 真实姓名

    private  String deptName;       // 部门名称


    public String getRealName() {
        return realName;
    }
    public void setRealName(String realName) {
        this.realName = realName;
    }
    public String getDeptName() {
        return deptName;
    }
    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }
    public int getDtID() {
        return dtID;
    }
    public void setDtID(int dtID) {
        this.dtID = dtID;
    }
    public Date getDtDate() {
        return dtDate;
    }
    public void setDtDate(Date dtDate) {
        this.dtDate = dtDate;
    }
    public String getSigninTime() {
        return signinTime;
    }
    public void setSigninTime(String signinTime) {
        this.signinTime = signinTime;
    }
    public String getSignoutTime() {
        return signoutTime;
    }
    public void setSignoutTime(String signoutTime) {
        this.signoutTime = signoutTime;
    }
    public String getEmprId() {
        return emprId;
    }
    public void setEmprId(String emprId) {
        this.emprId = emprId;
    }

    public Duty(int dtID, Date dtDate, String signinTime, String signoutTime,
                String emprId) {
        super();
        this.dtID = dtID;
        this.dtDate = dtDate;
        this.signinTime = signinTime;
        this.signoutTime = signoutTime;
        this.emprId = emprId;
    }

    public Duty(Date dtDate, String signoutTime, String emprId) {
        this.dtDate = dtDate;
        this.signoutTime = signoutTime;
        this.emprId = emprId;
    }

    public Duty(Date dtDate, String signinTime, String signoutTime,
                String emprId) {
        super();
        this.dtDate = dtDate;
        this.signinTime = signinTime;
        this.signoutTime = signoutTime;
        this.emprId = emprId;
    }

    public Duty() {
        super();
    }

    @Override
    public String toString() {
        return "Duty [dtID=" + dtID + ", dtDate=" + dtDate + ", signinTime="
                + signinTime + ", signoutTime=" + signoutTime + ", emprId="
                + emprId + "]";
    }

}
